import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 查询实时的订单执行情况
export const queryOrderInfo = params => axios.post(`${SERVER.SEARCH_DMSCLOUD_PART}/query/order/list`, params);

// 查询本地的订单执行情况
export const queryLocalOrderInfo = params => axios.get(`${SERVER.SEARCH_DMSCLOUD_PART}/partPurchase/getOrderExecuteCondition`, { params });

// 获取订单类型下来选
export const queryOrderSelectInfo = params => axios.get(`${SERVER.DMSCLOUD_PART}/partPurchase/getCheckRule`, { params });

// 获取申请单打印数据
export const queryOrderPrintData = params => axios.post(`${SERVER.DMSCLOUD_PART}/query/order/printOrder`, params);
// 获取发票信息
export const getInvoiceList = params => axios.get(`${SERVER.DMSCLOUD_PART}/query/order/invoice/list`, { params });
// 获取缺货单信息
export const getBackorderList = params => axios.get(`${SERVER.DMSCLOUD_PART}/query/order/backorder/list`, { params });
// 查询发运单
export const getShippedItem = params => axios.get(`${SERVER.DMSCLOUD_PART}/partPurchase/shipped/item`, { params });
// 打印发运单
export const getShippedHeader = params => axios.get(`${SERVER.DMSCLOUD_PART}/partPurchase/shipped/header`, { params });

// 查询发货点字典
export const getShippedDict = params => axios.get(`${SERVER.DMSCLOUD_PART}/stockmanage/partmanage/shpped/dict`, { params });
